/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.market.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.kaaction.common.persistence.DataEntity;

/**
 * 活动Entity
 * @author zengbiao
 * @version 2017-04-22
 */
public class EventFlow extends DataEntity<EventFlow> {
	
	private static final long serialVersionUID = 1L;
	private Event event;		// event_id 父类
	private Integer rank;		// rank
	private Date startDate;		// start_date
	private Date endDate;		// end_date
	private String content;		// content
	private String note;		// note
	
	public EventFlow() {
		super();
	}

	public EventFlow(String id){
		super(id);
	}

	public EventFlow(Event event){
		this.event = event;
	}

	@Length(min=1, max=64, message="event_id长度必须介于 1 和 64 之间")
	public Event getEvent() {
		return event;
	}

	public void setEvent(Event event) {
		this.event = event;
	}
	
	public Integer getRank() {
		return rank;
	}

	public void setRank(Integer rank) {
		this.rank = rank;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	
	@Length(min=0, max=45, message="content长度必须介于 0 和 45 之间")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}
	
}